package com.pagoda.nerp.trade.dao;

import com.pagoda.nerp.trade.entity.MdVendorGoods;

import java.util.List;
import java.util.Map;

public interface MdVendorGoodsDao {

    int deleteByPrimaryKey(Integer vendorGoodsId);

    int insert(MdVendorGoods record);

    MdVendorGoods selectByPrimaryKey(Integer vendorGoodsId);

    List<MdVendorGoods> selectAll();

    int updateByPrimaryKey(MdVendorGoods record);

	int updateVendorGoods(MdVendorGoods goods);

    List<MdVendorGoods> selectAllByConditon(Map map);

    MdVendorGoods selectOneByCondition(Map map);

    MdVendorGoods selectGoodsHistory(Map map);

    List<MdVendorGoods> selectByVendorId(int vendorId);
}